import { stringify } from "qs";
import request from "@/utils/request";

export async function DebtList(params) {
  return request(`/debt/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}
export async function debtDesc(params) {
  return request(`/debt/detail/${params.debtNo}`, {
    method: "POST",
    body: {
    }
  });
}

export async function DebtAudit(params) {
  return request(`/debt/audit`, {
    method: "POST",
    body: params
  });
}

export async function bankList(params) {
  return request(`/enterprise/bank/list`, {
    method: "POST",
    body: {}
  });
}

export async function SubmitForm(params) {
  return request(`/enterprise/add`, {
    method: "POST",
    body: params
  });
}
export async function SubmitEdit(params) {
  return request(`/enterprise/edit`, {
    method: "POST",
    body: params
  });
}
export async function accountOpen(params) {
  return request(`/enterprise/account/open/${params.code}`, {
    method: "POST",
    body: {}
  });
}
